package com.administrator.customviewtest.other.module;

import android.support.v7.app.AlertDialog;

/**
 * Created by lsp on 2017/9/11 10 43
 */

public class Persion {
    private String id;
    private String name;

    public String getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setId(String id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }


    private class PersionBuilder {
        private Persion persion;
        private String id;
        private String name;

        public Persion build() {
            persion = new Persion();
            persion.setId(id);
            persion.setName(name);
            return persion;
        }

        public PersionBuilder setId(String id) {
            this.id = id;
            return this;
        }

        public PersionBuilder setName(String name) {
            this.name = name;
            return this;
        }
    }
}
